package mest.dao.hws;

import mest.entity.warehouse_purchase;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface warehouse_purchaseMapper {
    int deleteByPrimaryKey(@Param("theirDb") String theirDb,@Param("id") Integer id);

    void insert(Map<String,Object> record);

    int insertSelective(@Param("theirDb") String theirDb,@Param("record")warehouse_purchase record);

//    warehouse_purchase selectByPrimaryKey(Integer id);

    //根据id查询计划采购单
    warehouse_purchase selectByPrimaryKey(@Param("theirDb") String theirDb,@Param("id") Integer id, @Param("finishStatus") Integer finishStatus);

    //查询全部计划采购单
    List<Map> selectPrimary(@Param("theirDb") String theirDb,@Param("limit") Integer limit, @Param("page") Integer page, @Param("finishStatus") Integer finishStatus);

    //查询总行数
    int selectcount(@Param("theirDb") String theirDb,@Param("finishStatus") Integer finishStatus,@Param("id") Integer id);

    int updateByPrimaryKeySelective(@Param("theirDb") String theirDb,@Param("record")warehouse_purchase record);

    int updateByPrimaryKey(@Param("theirDb") String theirDb,@Param("record")warehouse_purchase record);
}